﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SignIn.aspx.cs" Inherits="SignIn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>登录到客户(CRM)管理系统</title>
    <link rel="Shortcut Icon" href="favicon.ico" />
    <script type="text/javascript" language="javascript">
        if (location.href.indexOf("SignIn.aspx") == -1) {
            location.href = location.href + "SignIn.aspx";
        }

        window.moveTo(0, 0);
        window.resizeTo(window.screen.availWidth, window.screen.availHeight);

//        if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
//            window.attachEvent("onload", enableAlphaImages);
//        }
    </script>

    <script type="text/javascript" language="javascript">
　　        function windowopen() {
                window.open('Temp.aspx', 'newwindow', 'height=100,width=400');
                closeme();closynoshowsme();
            }


         
        var browserName = navigator.appName;
        if (browserName == "Netscape") {
            function closeme() {
                window.open('', '_parent', '');
                window.close();
            }
        }
        else {
            if (browserName == "Microsoft Internet Explorer") {
                function closynoshowsme() {
                    window.opener = "whocares";
                    window.close();
                }
            }
        } 

    </script>


    <style type="text/css">
        body, html
        {
            height: 100%;
            font-size: small;
            margin: 0px;
            height: 0px;
        }
        .input
        {
            /* border: solid 1px #557dba;
            height: 17px;
            width: 112px;*/
        }
        .select
        {
            /* border: solid 1px #557dba;*/
        }
        .btnLogin
        {
            src: url('images/SignIn2/btnLogin.gif' );
        }
        .btnLogin:hover
        {
            src: url('images/SignIn2/btnLoginHover.gif' );
        }
    </style>
    <link href="Css/SignIn.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" style="height: 100%; margin: 0px; width: 100%" defaultbutton="LoginButton">
    <asp:Panel ID="loginPanel" runat="server">
        <div style="margin: 0 auto">
            <table id="signBody" style="height: 100%; width: 100%;" cellpadding="0" cellspacing="0"
                class="BG">
                <%--放页面背景图--%>
                <tr>
                    <td align="right" style="padding-right: 3%">
                        <table>
                            <tr>
                                <td>
                                    <div style="display: none; z-index: 10" id="SetTheme">
                                    </div>
                                </td>
                                <td align="center" style="padding-right: 3%; display: block">
                                    <div style="display: none; z-index: 10" id="div1">
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: middle;">
                        <div class="SignInBG" style="width: 487px; height: 273px; margin: 0 auto">
                            <%--登录界面的背景图--%>
                            <div style="height: 53px">
                            </div>
                            <div style="border-color: #dfdfdf; height: 13px; text-align: left; margin-left: 33px;
                                margin-right: 25px; border-bottom-style: solid; border-bottom-width: 1px;">
                            </div>
                            <table style="width: 487px; height: 155px" cellpadding="0" cellspacing="0" border="0"
                                class="label">
                                <tr>
                                    <td style="width: 90px">
                                    </td>
                                    <td style="width: 226px">
                                        <table style="width: 226px; height: 114px; margin-top: 15px; text-align: left">
                                            <tr>
                                                <td style="text-align: right; width: 62px">
                                                    <asp:Label ID="UserNameLabel" runat="server" Text="登录名:" AssociatedControlID="UserName"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="UserName" runat="server" CssClass="input" Width="149px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align: right; width: 62px">
                                                    <asp:Label ID="PasswordLabel" runat="server" Text="密　码:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Password" runat="server" CssClass="input" TextMode="Password" Width="149px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align: right; width: 62px">
                                                    <asp:Label ID="Label6" runat="server" Text="验证码:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtValidateCode" runat="server" Width="92px" CssClass="input" Style="vertical-align: middle"></asp:TextBox>
                                                    <asp:ImageButton ID="ibtnValidateCode" runat="server" ImageUrl="~/FrmValidationCode.aspx"
                                                        Style="vertical-align: middle" OnClientClick="this.src='FrmValidationCode.aspx?'+Math.random();return false" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td style="text-align: left">
                                        <table style="width: 122px; height: 114px; margin-top: 15px;" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td style="vertical-align: top; width: 8px; background-image: url('Image/SignIn/line1.jpg');
                                                    background-repeat: no-repeat;">
                                                </td>
                                                <td style="text-align: center">
                                                    <%--登录按钮--%>
                                                    <asp:ImageButton ID="LoginButton" runat="server" ImageUrl="Image/SignIn/btnLogin.gif"
                                                        onMouseover="this.src='Image/SignIn/btnLoginHover.gif'" 
                                                        onMouseout="this.src='Image/SignIn/btnLogin.gif'" onclick="LoginButton_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="2" style="text-align: left">
                                    </td>
                                </tr>
                            </table>
                            <div style="height: 20px; text-align: right; padding-right: 25px; padding-top: 28px">
                                <div style="color: Red; float: left; text-align: right; width: 250px">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                </div>
                                <asp:Label ID="lbVersionPrefix" runat="server" Text="版本号："></asp:Label><asp:Label
                                    ID="lbVersion" runat="server" Text=""></asp:Label>
                            </div>
                        </div>
                        <div class="TSignInBG" style="margin: 0 auto">
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    </form>
</body>
</html>
